package com.kfm.pm;

public class Demo02 {

    public static void main(String[] args) {
        // 数组中常见的错误
//        int[] scores = {32, 45, 45, 76};
//        System.out.println(scores[5]); // 下标越界
        int[] ages = {32,43,444,32,'a'};
        System.out.println(ages[4]);  // 97
//        int[] ages1 = {32,43,444,32L}; // 初始化报错
//        ages1[2] = 100;
//        System.out.println(ages1[3]); // 报错
    }
}
